export function getAsyncRoutes(id) {
  if(id === 1000) {
    return {
      code: 200,
      msg: '',
      data: [
        {
          path: '/page1',
          name: 'page1',
          component: '/page1.vue'
        },
        {
          path: '/page2',
          name: 'page2',
          component: '/page2.vue'
        },
      ]
    }
  }

  if(id === 1001) {
    return {
      code: 200,
      msg: '',
      data: [
        {
          path: '/page',
          name: 'page1',
          component: '/page1.vue'
        },
        {
          path: '/page2',
          name: 'page2',
          component: '/page2.vue'
        },
        {
          path: '/page4',
          name: 'page3',
          component: '/page3.vue'
        },
        {
          path: '/page4',
          name: 'page4',
          component: '/page4.vue'
        }
      ]
    }
  }
}
 